<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache"/>   
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate"/>   
<meta http-equiv="expires" content="0"/>  
<title>Banner管理</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="js/select-ui.min.js"></script>
<script type="text/javascript" src="editor/kindeditor.js"></script>
<script charset="utf-8" src="editor/lang/zh-CN.js"></script>
<script type="text/javascript" src="js/application/banner.js?v=20180427"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>

<style>
   .ke-icon-addimg {
           background-image: url(../skins/default/default.gif);
           background-position: 0px -496px;
           width: 16px;
           height: 16px;
   }
</style>
<script type="text/javascript">
KindEditor.plugin('addimg', function(K) {
    var editor = this, name = 'addimg';
    // 点击图标时执行
    editor.clickToolbar(name, function() {
    	$("#uploadFile2").click()
    });
});
   var edit= KindEditor.ready(function(K) {
	   K.lang({
	        hello : '上传图片'
	});
	  
            window.editor = K.create('#content7', {
                items : ["source","|","undo","redo","|","preview","print","template","code","cut","copy","paste","plainpaste","wordpaste","|","justifyleft","justifycenter","justifyright","justifyfull","insertorderedlist","insertunorderedlist","indent","outdent","subscript","superscript","clearhtml","quickformat","selectall","|","fullscreen","/","formatblock","fontname","fontsize","|","forecolor","hilitecolor","bold","italic","underline","strikethrough","lineheight","removeformat","|","flash","media","insertfile","table","hr","emoticons","baidumap","pagebreak","anchor","link","unlink","|","addimg"],
                pasteType : 2,  
                filterMode: false,
            });
            
            
    });
 

</script>

</head>
<body>
	<div class="place" name="dataList">
    	<span>位置：</span>
    	<ul class="placeul">
		    <li><a href="#">线上运营管理</a></li>
		    <li><a href="/euc/page/banner.html">Banner管理</a></li>
		    
    	</ul>
    </div>
    
    <div class="formbody" name="dataList">    
	    <div class="tools">    
	    	<ul class="toolbar">
		        <li class="click" id="bannerAdd"><span><img src="images/t01.png" /></span>添加</li>
	        </ul>
	        <ul class="seachform" style="display:none;">  
		    	<li><label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;查询</label><input  name="parameter" type="text" class="scinput"  placeholder="Banner标题"/></li>    
		    	<li><label>&nbsp;</label><input name="" onclick="search(1);" type="button" class="scbtn" value="查询"/></li>    
		    </ul>
	    </div>
	    <div id="usual1" class="usual"> 	  	
		  	<div id="tab2" class="tabson">
				<table class="tablelist">
			    	<thead>
				    	<tr>
					        <th><input id="headerCheckBox" type="checkbox" value="" /></th>
					        <th>序号</th>
					        <th>Banner标题<i class="sort"><img src="images/px.gif" /></i></th>
					        <th>类型</th>
					        <th>排序权重（数字大小倒序）</th>
					        <th>创建时间</th>
					        <th>创建人</th>
					        <th>操作</th>
				        </tr>
			        </thead>
			        <tbody id="dataTable">
			        <!-- 
				        <tr>
					        <td><input name="" type="checkbox" value="" /></td>
					        <td>20130908</td>
					        <td>王金平幕僚：马英九声明字字见血 人活着没意思</td>
					        <td>admin</td>
					        <td>江苏南京</td>
					        <td>2013-09-09 15:05</td>
					        <td>已审核</td>
					        <td><a href="#" class="tablelink">查看</a>     <a href="#" class="tablelink"> 删除</a></td>
				        </tr> 
				    -->
			        </tbody>
			    </table>	    
			    <div class="pagin">
			    	<div class="message">共<i id="totalRow" class="blue">0</i>条记录，每页<i id="pageSize" class="blue">0&nbsp;</i>条记录，当前显示第&nbsp;<i id="currentPage" class="blue">1&nbsp;</i>页</div>
			        <ul class="paginList" >
				        <li class="paginItem"><a href="javascript:;"><span class="pagepre"></span></a></li>
				        <li class="paginItem"><a href="javascript:;">1</a></li>
				        <li class="paginItem"><a href="javascript:;"><span class="pagenxt"></span></a></li>
			        </ul>
			    </div>
	    	</div> 
		</div> 
 
		<script type="text/javascript"> 
	      	$("#usual1 ul").idTabs(); 
	    </script>
	    
	    <script type="text/javascript">
			$('.tablelist tbody tr:odd').addClass('odd');
		</script>    
    </div>
	
	<div class="place" name="dataForm" style="display:none;">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="#">线上运营管理</a></li>
			<li><a href="/euc/page/banner.html">Banner管理</a></li>
			<li><a href="#" id="operator">添加</a></li>
		</ul>
	</div>
    <div class="formbody" name="dataForm" style="display:none;">	    
	    <div class="formtitle"><span>Banner</span></div>	    
	    <ul class="forminfo">
		    <li>
		    	<label style="font-size:16px;float:left;">标题<b>*</b></label>
		    	<input style="float:left;" name="title" id='t1' required='1' message='请输入标题' formParameter="banner" type="text" class="dfinput" placeholder="请输入标题"/>
		    </li>
		    
		    <li></li>		    
		    <li>
		    	<label style="font-size:16px;float:left;">排序号<b>*</b></label>			
			    <input style="float:left;" name="orderNum"  id='t2' required='1' message='请输入排序号' formParameter="banner"  type="text" class="dfinput" placeholder="请输入排序号"/>
		    </li>

			<li></li>
		    <li>
				<label style="font-size:16px;width: 100%;">封面（推荐尺寸1000*600）<b>*</b></label>
			    <span><img style="width:333px;height:200px;"  name="bannerImage" id="bannerImage" src="images/img07.png" onerror="this.src='images/img07.png'"/></span>
			    <input  name="bannerImage" formParameter="banner"  id='t3'  type="hidden" value=""/>
		    </li>
		    <li>
				<label style="font-size:16px;float:left;">&nbsp;</b></label>
				<form style="float:left;" id="bannerImageForm" action="/euc/system/upload" method="post" enctype="multipart/form-data">
			    	<input  id="uploadFile" name="file" type="file" style="width:400px;" value="添加图片"/>
			    	<input  name="folderName" type="hidden" value="banners"/>
			    	<input  name="fileType" type="hidden" value="图片"/>
			    </form>
		    </li>	    
		    
		    <li></li>	
	    	<li>
		    	 <label style="font-size:16px;float:left;">类型<b>*</b></label>
				 <div class="vocation">
				    <select class="select2" name="contentType" id="bannerType" formParameter="banner" >
				    	<option value="" >请选择</option>
				    	<option value="0" >跳转外链</option>
				    	<option value="1" selected>跳转图文详情</option>
					</select>
			    </div>
	        </li>
	        <li></li>
	        <li style="display:none;" id="bannerUrl">
		    	<label style="font-size:16px;float:left;">链接<b>*</b></label>			
			    <input style="float:left;" name="content" id="t4" formParameter="banner"  type="text" class="dfinput" placeholder="请输入url"/>
		    </li>
		    
		    <li></li>	
		    <li id="bnnerDetail">
		    	<label>详情<b>*</b></label>
			    <textarea id="content7" name="content" formParameter="banner"  style="width:700px;height:250px;visibility:hidden;"></textarea>			    
		    </li>
		    <li style="display:none"><form style="float:left;" id="noticeImageForm2" action="/euc/system/upload" method="post" enctype="multipart/form-data">
			    	<input id="uploadFile2"   name="file" type="file" style="width:400px;" value="添加图片"/>
			    	<input  name="folderName" type="hidden" value="notice"/>
			    	<input  name="fileType" type="hidden" value="图片"/>
			    </form></li>
		    <li></li>
		    <li></li>
		    <li>
		    	<label>&nbsp;</label>
		    	<input name="btnSave"  id="btnSave"  type="button" class="btn" value="确定"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		    	<input name="btnCancle"  id="btnCancle"  type="button" class="btn" value="取消"/>
		    </li>
	    </ul>
    </div>
</body>
</html>
